package com.lzw.breezeNovel.webApp.mapper.video;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.webApp.mapper.video
 * @date 2025/3/18
 * @description
 */
@Mapper
@SuppressWarnings("all")
public interface VideoCategoryMapper {

    /**
     * 获取类别
     * @return
     */
    @Select("select type from video_category  where category=#{type}")
    List<String> getCategory(Integer type);


    /**
     * 获取地区
     * @return
     */
    @Select("select distinct region from video_category where category=#{type}")
    List<String> selectArea(Integer type);

}
